﻿<ribbon:RibbonWindow x:Class="BookManagementWpfApplication.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="Book Management Application"
		x:Name="RibbonWindow"
        FontFamily="Tahoma" FontSize="14"
		Width="970" Height="600">

	<Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ribbon:Ribbon x:Name="Ribbon" FontSize="14" FontFamily="Tahoma">
            
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu SmallImageSource="/BookManagementWpfApplication;component/Images/home.png">
                    <ribbon:RibbonApplicationMenuItem Header="ระบบจัดการหนังสือ By IT" x:Name="MenuItem1" ImageSource="/BookManagementWpfApplication;component/Images/info.png"/>
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>

            <ribbon:RibbonTab x:Name="MainTab" Header="หน้าหลัก">
                <ribbon:RibbonGroup x:Name="Main1" Header="Main Page">
                    <ribbon:RibbonButton x:Name="ListBookButton" Label="รายการหนังสือ" FontWeight="Bold" Click="ListBookButton_Click" LargeImageSource="/BookManagementWpfApplication;component/Images/comment.png" />                   
                </ribbon:RibbonGroup>                
            </ribbon:RibbonTab>
            
            <ribbon:RibbonTab x:Name="SystemTab" Header="ระบบต่างๆ">
                <ribbon:RibbonGroup x:Name="SystemGroup1" Header="Add Books">
                    <ribbon:RibbonButton x:Name="AddBookButton" Label="เพิ่มรายชื่อหนังสือ" FontWeight="Bold" Click="AddBookButton_Click" LargeImageSource="/BookManagementWpfApplication;component/Images/add.png" />
                </ribbon:RibbonGroup>                  
                <ribbon:RibbonGroup x:Name="SystemGroup2" Header="Borrow Books" >
                    <ribbon:RibbonButton x:Name="BorrowBookButton" Label="ยืม/คืนหนังสือ" FontWeight="Bold" Click="BorrowBookButton_Click" LargeImageSource="/BookManagementWpfApplication;component/Images/script_edit.png" />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
            
            <ribbon:RibbonTab x:Name="ReportTab" Header="ข้อมูลต่างๆ">
                <ribbon:RibbonGroup x:Name="ReportGroup1" Header="Borrow Name">
                    <ribbon:RibbonButton x:Name="BorrowNameButton" Label="รายชื่อผู้ยืม" FontWeight="Bold" Click="BorrowNameButton_Click" LargeImageSource="/BookManagementWpfApplication;component/Images/application_view_icons.png" />
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="ReportGroup2" Header="Statistics">
                    <ribbon:RibbonButton x:Name="StatisticsButton" Label="ข้อมูลสถิติ" FontWeight="Bold" Click="StatisticsButton_Click" LargeImageSource="/BookManagementWpfApplication;component/Images/application_view_columns.png" />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
        </ribbon:Ribbon> 
        
        <Grid Grid.Row="1" Name="Content" />        
    </Grid>
</ribbon:RibbonWindow>
